import NetUtil from '../common/NetUtil';
import config from '../config/config';

export const getQiniuToken = (success,error) => {
    const params = {};
    let url = "/qiniu/token";
    NetUtil.postSign(config.apiUrl + url, params, function (res) {
        if (res.success) {
            let data = res.data;
            success(data);
        } else {
            error(res);
        }
    });
};
